home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / snip0493.zip / DOS5BOOT.H < prev    next >
Text File  |  1993-04-05  |  2KB  |  41 lines

  1. /*
  2. **  DOS5BOOT.H - DOS 5 boot record
  3. */
  4.  
  5. #if defined(__TURBOC__)
  6.  #pragma option -a-
  7.  #define FAR far
  8. #elif defined(__ZTC__)
  9.  #pragma ZTC align 1
  10.  #define FAR _far
  11. #else /* MSC/QC/WATCOM/METAWARE */
  12.  #pragma pack(1)
  13.  #define FAR _far
  14. #endif
  15.  
  16. typedef struct {                                /* offset in buffer record */
  17.         char      bsJump[3];                    /* 1 - 3                   */
  18.         char      bsOemName[8];                 /* 4 - 11                  */
  19.         short     bsBytesPerSec;                /* 12 - 13                 */
  20.         char      bsSecPerClust;                /* 14                      */
  21.         short     bsResSectors;                 /* 15 - 16                 */
  22.         char      bsFATs;                       /* 17                      */
  23.         short     bsRootDirEnts;                /* 18 - 19                 */
  24.         short     bsSectors;                    /* 20 - 21                 */
  25.         char      bsMedia;                      /* 22                      */
  26.         short     bsFATsecs;                    /* 23 - 24                 */
  27.         short     bsSecPerTrack;                /* 25 - 26                 */
  28.         short     bsHeads;                      /* 27 - 28                 */
  29.         long      bsHiddenSecs;                 /* 29 - 32                 */
  30.         long      bsHugeSectors;                /* 33 - 36                 */
  31.         char      bsDriveNumber;                /* 37                      */
  32.         char      bsReserved1;                  /* 38                      */
  33.         char      bsBootSignature;              /* 39                      */
  34.         long      bsVolumeID;                   /* 40 - 43                 */
  35.         char      bsVolumeLabel[11];            /* 44 - 54                 */
  36.         char      bsFileSysType[8];             /* 54 - 61                 */
  37.         char      bsReserved2[8];               /* 62 - 69                 */
  38.         char      bsJunk[442];                  /* 70 - end of record
  39.                                                    (byte 512 is last)      */
  40.         } B_REC;                    /* Boot_record; total of 512 bytes     */
  41.